import request from '@/utils/request'

// 查询财务类别列表
export function listFinanceCategory(query) {
  return request({
    url: '/system/financeCategory/list',
    method: 'get',
    params: query
  })
}

// 查询财务类别列表
export function allFinanceCategory() {
  return request({
    url: '/system/financeCategory/all',
    method: 'post'
  })
}

// 查询财务类别详细
export function getFinanceCategory(id) {
  return request({
    url: '/system/financeCategory/' + id,
    method: 'get'
  })
}

// 新增财务类别
export function addFinanceCategory(data) {
  return request({
    url: '/system/financeCategory',
    method: 'post',
    data: data
  })
}

// 修改财务类别
export function updateFinanceCategory(data) {
  return request({
    url: '/system/financeCategory',
    method: 'put',
    data: data
  })
}

// 删除财务类别
export function delFinanceCategory(id) {
  return request({
    url: '/system/financeCategory/' + id,
    method: 'delete'
  })
}
